﻿@{
    Layout = null;
}
<!DOCTYPE html>

<html style="overflow-y: hidden;">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>@FCDB.WEB.Resources.Views.Form.Default.WorkBench</title>
    <link href='@Url.Content("~/Content/kendo.common.min.css")' rel="stylesheet" />
    <link href='@Url.Content("~/Content/kendo.default.min.css")' rel="stylesheet" />
    <link href='@Url.Content("~/Content/common.css")' rel="stylesheet" />
    <link href='@Url.Content("~/Content/foa.source.css")' rel="stylesheet" />
    <link href='@Url.Content("~/Content/public.css")' rel="stylesheet" />
    <link href='@Url.Content("~/Content/con_style.css")' rel="stylesheet" />
    <script src='@Url.Content("~/Scripts/jquery-1.8.2.min.js")'></script>
    <script src='@Url.Content("~/Scripts/kendo.web.js")'></script>
    <script type="text/javascript" src=@Url.Content("~/Scripts/lhgdialog.min.js")> </script>
    <script type="text/ecmascript">
        function jumpPage(tag, url) {
            if ($(tag).hasClass("sub_a")) return;
            $(".sub_a").removeClass("sub_a");
            $(tag).parent().addClass("sub_a");
            var text = "@FCDB.WEB.Resources.Views.Form.Default.System-->" + $(tag).parents(".menulist").find("span").html() + "-->" + $(tag).html();
            $("#divcrumb").html(text);
            $('#toppage').attr('src', url);
        }

        function onRefresh() {
            toppage.window.location.reload();
        }
        function ChangePWD() {
            var url = '@Url.Action("ChangePassword", "Account")';
            OpenPop(url, "@FCDB.WEB.Resources.Views.Form.Default.ChangePassWord");
        }
        function OpenPop(url, titleName, width, height) {
            width = width || 650;
            height = height || 300;
            window.top.winObj = window;
            window.top.refresh = onRefresh;
            window.top.oDG = $.dialog({
                lock: true,
                background: '#FFF',
                opacity: 0.2,
                id: 'esDialog',
                title: titleName,
                titleAlign: 'left',
                content: "url:" + url,
                width: width,
                height: height,
                btnBar: false,
                lockScroll: true
            });
        }
        function switchPanalBar() {
            $("#dsidebar").hide(500);
        }

        function showTab(index, tag) {
            $(".menulist").hide();
            $(".tab" + index).show();
            $(".nav_hove").removeClass("nav_hove");
            $(tag).parent().addClass("nav_hove");
            $(".menulist:visible:eq(0)").find("a:eq(0)").trigger("click");
        }
        $(document).ready(function () {
            $(".menulist span").click(function () {
                if ($(this).parent().find("ul").is(":visible")) {
                    $(this).parent().find("ul").hide(500);
                } else {
                    $(this).parent().find("ul").show(500);
                }
            });
        });
    </script>
</head>
<body>
    <!--top star-->
    <div class="top top_h">
        <div class="top1 top_h">
            <h1 id="logo" class="top_h"><a href="#" id="lnkLogo" target="_blank">@FCDB.WEB.Resources.Views.Form.Default.Group</a></h1>
            <li class="nav">
                <ul>
                    <li class="nav_hove"><a href="javascript:void(0)" onclick="showTab('1',this)" target="toppage">工作台</a></li>

                   


                </ul>
            </li>


        </div>
        <div class="top2 top_h">
            <ul>
                <li id="role">@FCDB.WEB.Resources.Views.Form.Default.WelCome：<a href="javascript:void(0)">@ViewBag.UserName</a></li>
                <li><a href="javascript:void(0)" onclick="onRefresh()">刷新</a></li>
                <li><a href="javascript:void(0)" onclick="ChangePWD()">修改密码</a></li>
                <li id="exit"><a href='@Url.Action("LogOff", "Account")'>退出</a></li>
            </ul>
        </div>
        <div class="clr"></div>
    </div>
    <!--top end-->
    <!--main star-->
    <div class="main" id="dvmain">
        <!--sidebar star-->
        <div class="sidebar" id="dsidebar">

            <div class="menulist tab1">
                <span class="mlist_move">业务管理</span>
                <ul class="submenu ">
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Index", "WorkFormApply")')" target="toppage">业务申请</a></li>
                    <li class="sub_a"><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Index", "ReadyTasks")')" target="toppage">待办业务</a></li>
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Transiting", "ProcessQuery")')" target="toppage">流转中业务</a></li>
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Completed", "ProcessQuery")')" target="toppage">结束业务</a></li> 
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Index", "MyProcessInstance")')" target="toppage">本人业务</a></li>
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Index", "ProcessQuery")')" target="toppage">所有业务</a></li>
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Index", "FormDraft")')" target="toppage">草稿</a></li>
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("editBusiness", "ReadyTasks")')" target="toppage">业务修改</a></li>
                    @if (User.HasFlag(FB.Security.FCDB.ProcessInstance.ProcessInstanceManager.View))
                    {
                        <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("Index", "ProcessInstance")')" target="toppage">流程管理</a></li>
                    }
                      @if (User.HasFlag(FB.Security.FCDB.ProcessInstance.FinanceManager.View))
                     {  
                        <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("editFinance", "ReadyTasks")')" target="toppage">财务收款</a></li>
                        <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("financePrint", "ReadyTasks")')" target="toppage">财务打印</a></li>
                     }
                    @if (User.HasFlag(FB.Security.FCDB.ProcessInstance.ComprehensiveManager.View))
                    { 
                        <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("editComprehensive", "ReadyTasks")')" target="toppage">综合室修改</a></li>
                     }
                </ul>
            </div> 
            <div class="menulist tab1">
                <span class="mlist_move">报表管理</span>
                <ul class="submenu ">
                   <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("BusinessDetail", "BusinessReport")')" target="toppage">业务明细</a></li>
                   
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("FeildSetting", "BusinessReport")')" target="toppage">业务字段设置</a></li>
   
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("BusinessDeductDetailReport", "BusinessReport")')" target="toppage">提成明细</a></li>
@if ( User.HasFlag(FB.Security.FCDB.ReportManagement.BusinessDeductReport.View))
                    {
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("BusinessDeductReport", "BusinessReport")')" target="toppage">提成汇总</a></li>
}
                  @if ( User.HasFlag(FB.Security.FCDB.ReportManagement.PermissionsSettings.View))
                    {
                    <li><a href="javascript:void(0)" onclick="jumpPage(this,'@Url.Action("PermissionsSettings", "BusinessReport")')" target="toppage">报表权限设置</a></li>
                  }
                </ul>
            </div>
             
            
           
            <div class="sideclose">
                <a href="javascript:void(0)" onclick="switchPanalBar()">
                    <img src="images/side_close.png" alt="" />
                </a>
            </div>
        </div>
        <!--sidebar end-->
        <!--container star-->
        <div class="container">
            <!--site star-->
            <div class="site">
                <span>在线人数：<i>  @ViewBag.OnlineNumber </i>人</span>
                <p>@FCDB.WEB.Resources.Views.Form.Default.YourSite <em>> </em>
                <a href="#" id="divcrumb" target="_blank">@FCDB.WEB.Resources.Views.Form.Default.divcrumb</a></p>
            </div>
            <!--site end-->
            <!--content star-->
            <div id="mainframe" class="content" style="padding-right: 8px;">
                @if (string.IsNullOrEmpty(Request["gotoUrl"]))
                {
                    <iframe id="toppage" name="toppage" src='@Url.Action("Index", "ReadyTasks")' width="100%" height="100%" style="overflow-y:auto;" frameborder="0"></iframe>
                }
                else
                {
                    <iframe id="toppage" name="toppage" src='@Request["gotoUrl"]' width="100%" height="100%" style="overflow-y:auto;" frameborder="0"></iframe>
                }
            </div>
            <!--content end-->
        </div>
        <!--container end-->
    </div>
    <!--main end-->

    <script type="text/javascript">
        /**
    * 全屏控制
    */
        var isIE6 = ! -[1, ] && !window.XMLHttpRequest;
        if (isIE6) {
            document.execCommand("BackgroundImageCache", false, true);
        }
        function setFullScreen(hasMainMenu) {
            var $win = $(window);
            var nWinHeight = $win.height();
            var nMaxHeight = nWinHeight - 170;
            $('#toppage').height(nMaxHeight);
            //    $('#dvmain').height(nWinHeight - 130);
            $('#container').height(nWinHeight - 130);
        }

        $(window).resize(function () {
            setFullScreen();
        });
        $(function () {
            setFullScreen();

            var jp = '@Request["jumpPage"]';
            if (jp != '') {
                showTab(jp, null);
            }

        });
    </script>
</body>
</html>
